package com.hand.zc25650.utils;


import java.math.BigDecimal;

public class OrderLineQueryResult {
    private String orderNumber;
    private String userName;
    private String address;
    private String remark;
    private long createdBy;
    private int orderLineNumber;
    private String itemCode;
    private String itemName;
    private BigDecimal unitPrice;
    private BigDecimal quantity;
    private BigDecimal lineAmount;

    public OrderLineQueryResult() {
    }

    public OrderLineQueryResult(String orderNumber, String userName, String address, String remark, long createdBy, int orderLineNumber, String itemCode, String itemName, BigDecimal unitPrice, BigDecimal quantity, BigDecimal lineAmount) {
        this.orderNumber = orderNumber;
        this.userName = userName;
        this.address = address;
        this.remark = remark;
        this.createdBy = createdBy;
        this.orderLineNumber = orderLineNumber;
        this.itemCode = itemCode;
        this.itemName = itemName;
        this.unitPrice = unitPrice;
        this.quantity = quantity;
        this.lineAmount = lineAmount;
    }

    @Override
    public String toString() {
        return "订单详情：" +
                "\n订单编号:" + orderNumber +
                "\n客户名称:" + userName +
                "\n客户地址:" + address +
                "\n订单备注:" + remark +
                "\n订单创建人:" + createdBy +
                "\n订单行号:" + orderLineNumber +
                "\n物料编码:" + itemCode +
                "\n物料名称:" + itemName +
                "\n单价:" + unitPrice +
                "\n数量:" + quantity +
                "\n行总价:" + lineAmount+
                "\n**************"
                ;
    }
}
